package com.shamar.blog.enums;

/**
 * 业务交易状态
 *
 * @author xun
 * @version 1.0
 * @date 2017/8/12 上午10:34
 * @project loanrisk
 */
public enum TradeStatusEnum {

    SUCCESS,

    FAIL,

    PROCESS,

    UNKNOWN;

    public static TradeStatusEnum getByName(String name){
        for(TradeStatusEnum creditStatusEnum: TradeStatusEnum.values()){
            if(creditStatusEnum.name().equals(name)){
                return creditStatusEnum;
            }
        }
        return null;
    }
}
